﻿using System;
using System.Collections.Generic;
using System.Text;
using FangPage.Core;
using FangPage.User.Model;

namespace FangPage.User
{
    public class AdminController:FPController
    {
        protected AuthInfo authinfo;

        public override void Init()
        {
            authinfo = FPUser.Authorize();

            if (!authinfo.islogin)
            {
                FPResponse.ShowErr("对不起，您尚未登录或登录超时！", 110, isview);
                return;
            }

            if(authinfo.isadmin==0)
            {
                FPResponse.ShowErr("对不起，您没有管理员权限！", isview);
                return;
            }
        }
    }
}
